package ui;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.StringItem;

import midlet.VadeMecumMIDlet;

public class QueryResultForm extends Form {

	
	private StringItem si;
	
	public QueryResultForm(VadeMecumMIDlet midlet, String result) {
		super("Query results");
		si = new StringItem("", result);
		Command backCommand = new Command("BACK", Command.BACK, 1);
		this.addCommand(backCommand);
		this.append(si);
	}
	
	public void setStringItem(String str) {
		this.si.setText(str);
		this.deleteAll();
		this.append(si);
	}
	
	

}
